package com.combetter.changxing.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;


import com.combetter.changxing.db.entity.Record;

import java.util.List;

/**
 * 类名  ElectronicPipe
 * 作者  tlfx: Sean.guo
 * 日期  2019/6/4 14:49
 */
@Dao
public interface RecordDao {
    /**
     * 查询吸烟记录
     *
     * @return
     */
//    @Query("SELECT * FROM record_table")
//    List<Record> getRecordInfoList();
//
//    @Query("SELECT * FROM record_table WHERE _uid = :uid")
//    List<Record> findRecordByUid(String uid);

    /**
     * 添加吸烟记录
     *
     * @param records
     * @return
     */
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    void insertSingle(Record... records);

//    //根据名字删除
//    @Query("DELETE  FROM record_table where _uid=:uid")
//    void deleteRecordByUid(String uid);
//
//    @Query("DELETE  FROM collect_table")
//    void deleteAll();
}
